package com.jinxiangyang.gateway.constant;

public class AuthConstant {
    public static final String AUTHORIZATION_HEADER = "Authorization";
    public static final String AUTHORIZATION_TOKEN_TYPE = "Bearer";
    public static final String AUTHORIZATION_SCHEME = AUTHORIZATION_TOKEN_TYPE + " ";
    public static final String AUTHORIZATION_REFRESH_TOKEN_TYPE = "Refresh";
    public static final String AUTHORIZATION_REFRESH_SCHEME = AUTHORIZATION_REFRESH_TOKEN_TYPE + " ";
    public static final String AUTHORIZATION_TOKEN_KEY = "access_token";
    public static final String AUTHORIZATION_REFRESH_TOKEN_KEY = "refresh_token";
    public static final String AUTHORIZATION_TOKEN_EXPIRE_KEY = "expires_in";
    public static final String AUTHORIZATION_TOKEN_REFRESH_EXPIRE_KEY = "refresh_expires_in";
    public static final String AUTHORIZATION_TOKEN_REFRESH_TOKEN_KEY = "refresh_token";
    public static final String AUTHORIZATION_TOKEN_REFRESH_TOKEN_EXPIRE_KEY = "refresh_expires_in";
    public static final String AUTHORIZATION_TOKEN_USER_KEY = "user";
    public static final String AUTHORIZATION_TOKEN_USER_ID_KEY = "user_id";
    public static final String AUTHORIZATION_TOKEN_USER_NAME_KEY = "user_name";
    public static final String AUTHORIZATION_TOKEN_USER_ROLE_KEY = "user_role";
    public static final String AUTHORIZATION_TOKEN_USER_AUTHORITY_KEY = "user_authority";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_KEY = "user_info";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_ID_KEY = "user_info_id";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_NAME_KEY = "user_info_name";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_ROLE_KEY = "user_info_role";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_AUTHORITY_KEY = "user_info_authority";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_AVATAR_KEY = "user_info_avatar";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_GENDER_KEY = "user_info_gender";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_BIRTHDAY_KEY = "user_info_birthday";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_ADDRESS_KEY = "user_info_address";
    public static final String AUTHORIZATION_TOKEN_USER_INFO_PHONE_KEY = "user_info_phone";
    public static final String AUTHORIZATION_TOKEN_CLAIM_NAME = "claim_name";
    public static final String AUTHORITY_PREFIX = "ROLE_";

    public static final String AUTHORITY_CLAIM_NAME = "authorities";

}
